package com.action.blog.black;

import java.util.Map;

import com.db.blog.black.*;
import com.opensymphony.xwork2.ActionContext;

public class BlackDeleteAction {
	
	private String[] delID;
	private blackListManager black;
	public blackListManager getBlack() {
		return black;
	}

	public void setBlack(blackListManager black) {
		this.black = black;
	}

	public void setDelID(String[] delID) {
		this.delID = delID;
	}

	public String execute() throws Exception {

		blackListVO vo = new blackListVO();
		Map session = ActionContext.getContext().getSession();
		vo.setIdtype((String) session.get("login"));
		for (int i = 0; i < delID.length; i++) {
			vo.setBlackid(delID[i]);
			black.blackListDelete(vo);
		}
		return "success";

	}
}
